home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 March
/
PCWorld_2007-03_cd.bin
/
komunikace
/
acehtml
/
acehtmlfreeware.exe
/
scriptdef
/
Shopping Days Until Christmas.sd
< prev
next >
Wrap
INI File
|
2006-09-13
|
1KB
|
46 lines
[SUBJECT]
Description=Display the number of shopping days left until Christmas
ImageIndex=-1
Folder=Mathematics
[BODY_TEXT]
;<!--JavaScript from ISN Toolbox
;Copyright 1996, Infohiway Server Network. Restricted use (commercial
;and personal OK so long as this code is not *directly* sold) is hereby
;granted, providing this notice is buried somewhere in your HTML
;document. A link to http://www.infohiway.com is certainly
;appreciated, but is absolutely and positively not necessary. :-) -->
;<CENTER>
;
;<script language="JavaScript">
;<!-- Hide Script from Java-Impaired Browsers
;// fixes a Netscape 2 and 3 bug
;function mygetFullYear(d) { // d is a date object
; yr = d.getYear();
; if (yr < 1000)
; yr+=1900;
; return yr;
;}
;function getRemaining() {
; today = new Date();
; targetdate = new Date("December 25, "+mygetFullYear(today));
; milliseconds = (24 * 60 * 60 * 1000);
; remaining = ((targetdate.getTime() - today.getTime()) / milliseconds);
; return Math.round(remaining);
;}
;document.write("<TABLE BORDER=3 cellpadding=5><TR><TD ALIGN=CENTER><BR>"
; + "<FONT SIZE='5' COLOR='red'><B>`Caption`<P>"
; + "<B>There Are Only ",getRemaining()," Shopping Days<P>Remaining "
; + "Until Christmas!</B></FONT><P></TD></TR></TABLE><P>");
;// End Hiding Script -->
;</script>
;</CENTER>
[`Caption`]
Kind=S
Value=Just a Reminder . . .